package cn.com.pet.common.webServiceImpl;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.jws.WebService;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

import org.springframework.beans.factory.annotation.Autowired;

import cn.com.pet.common.entity.User;
import cn.com.pet.common.service.UserService;
import cn.com.pet.common.util.FkXmlAdapter;
import cn.com.pet.common.webService.UserWebService;


@WebService(endpointInterface="cn.com.pet.common.webService.UserWebService"
	,serviceName="userWebService")
public class UserWebServiceImpl implements UserWebService {

	@Autowired
	UserService userService;
	
	public String getCe() {
		if(null != userService){
			System.out.println("userService is not null");
		}else{
			System.out.println("userService is null");
		}
		return "userWebService";
	}

	@Override
	public List<User> getUserFindAll(User user) {
		// TODO Auto-generated method stub
		List<User> uList = new ArrayList<User>();
		return uList;
	}

	@Override
	@XmlJavaTypeAdapter(FkXmlAdapter.class)
	public Map<String, User> getUserMap() {
		// TODO Auto-generated method stub
		 Map<String, User> m = new HashMap<String, User>();
		return m ;
	}

	
}
